package com.xh.core.bean;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * <p>
 *
 * </p>
 *
 * @author Pitt zhang
 * @since 2019/3/5
 */
@Data
@ApiModel
public class BaseDto {
    private String id;
    @ApiModelProperty("是否删除（0否，1是）")
    private Integer deleted;
    @ApiModelProperty("创建人ID")
    private String creatorId;
    @ApiModelProperty("创建人名称")
    private String creatorName;
    @ApiModelProperty("创建时间")
    @JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat
    private Date createTime;
    @ApiModelProperty("修改人ID")
    private String modifierId;
    @ApiModelProperty("修改人名称")
    private String modifierName;
    @ApiModelProperty("修改时间")
    @JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat
    private Date modifyTime;
}
